<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->headTitle() ?>
        <meta http-equiv="content-type" content="charset=utf-8" />
        <?php
        echo $this->headLink()
                ->appendStylesheet($this->APP_STATIC_SERVER . '/skins/admin/default/css/admin.css')
                ->appendStylesheet($this->APP_STATIC_SERVER . '/skins/admin/default/css/spreadsheet.css'); ?>
        <?php
        echo $this->headScript()
                ->prependFile($this->APP_STATIC_SERVER . '/public/js/jquery.js')
                ->appendFile($this->APP_STATIC_SERVER . '/skins/admin/default/js/admin.js');
        ?>
    </head>
    <body>
        <div id="all">
            <div id="header">
                <div id="logo">
                    <a href="<?php $this->url(array(), "core_dashboard_index"); ?>" title="IDG Dashboard">
                        <img src="<?php echo $this->APP_STATIC_SERVER . "/skins/admin/default/images/cplogo.png"; ?>" alt="IDG LOGO"/>
                    </a>
                </div>
                <div id="account">
                    <?php echo $this->translate('menu_welcome', 'core'); ?>: &nbsp;
                    <a href="<?php echo $this->identity()->role_name; ?>"><?php echo $this->identity()->username; ?></a>
                    &nbsp;| &nbsp;
                    <a href="<?php echo $this->url(array(), 'core_auth_logout');?>"><?php echo $this->translate('menu_logout', 'core'); ?></a>
                </div>
            </div><!-- end of header -->
            <div id="main">
                <div id="sidebar">
                    <div id="dashboard" class="box">
                        <div class="b-title">
                            <img src="<?php echo $this->APP_STATIC_SERVER . '/skins/admin/default/images/home.png'; ?>" alt=""/>
                            <a href="<?php echo $this->url(array(), "core_dashboard_index"); ?>" title="">
                                <?php echo $this->translate('menu_admin', 'core'); ?>
                            </a>
                        </div>
                    </div><!-- end of .box#dashboard  -->
                    <div id="modules" class="accordion box">
                        <div class="b-title">
                            <img src="<?php echo $this->APP_STATIC_SERVER . '/skins/admin/default/images/module-32x32.png'; ?>" alt=""/>
                            <a href="#" title="">
                                <?php echo $this->translate('menu_module', 'core'); ?>
                            </a>
                        </div>
                        <div class="b-container">
                            <ul>
                                <?php foreach (($modules = $this->moduleTask()) as $index => $module) : ?>
                                    <li <?php echo ($module['current']) ? 'class="current"' : '' ?>><div><?php echo $module['description']; ?></div>
                                        <ul>
                                        <?php foreach ($module['tasks'] as $task) : ?>
                                            <li><a href="<?php echo $task['link']; ?>"><?php echo $task['label']; ?></a></li>
                                        <?php endforeach; ?>
                                        </ul>
                                    </li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                    </div><!-- end of #modules -->
                    <div id="system" class="accordion box">
                        <div class="b-title">
                            <img src="<?php echo $this->APP_STATIC_SERVER . '/skins/admin/default/images/system-32x32.png'; ?>" alt=""/>
                            <a href="#"><?php echo $this->translate('menu_system', 'core'); ?></a>
                        </div>
                        <div class="b-container">
                            <ul>
                                <?php foreach (($system = $this->systemTask()) as $i => $s) : ?>
                                    <li><div><?php echo $s['name']; ?></div>
                                        <ul>
                                        <?php foreach ($s['tasks'] as $task) : ?>
                                            <li><a href="<?php echo $task['link']; ?>"><?php echo $task['label']; ?></a></li>
                                        <?php endforeach; ?>
                                        </ul>
                                    </li>
                                <?php endforeach; ?>
                                
                            </ul>
                        </div>
                    </div>
                </div><!-- end of sidebar -->
                <div id="right">
                    <?php echo $this->layout()->content; ?>
                </div>
            </div><!-- end of main -->
        </div><!-- end of all -->
    </body>
</html>


